home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / thrasher.zip / THRASHER.DOC < prev    next >
Text File  |  1986-12-16  |  11KB  |  256 lines

  1.                                   "THRASHER"
  2.  
  3.        A program to test the optimum BUFFERS number for your CONFIG.SYS
  4.  
  5.                     By Monte Ferguson   rel 1.0   12/16/86
  6.  
  7.  
  8.  DOS, starting with version 2.0, uses a special file called CONFIG.SYS when 
  9. it boots to set certain parameters and options. One of the options that can 
  10. be set is the number of BUFFERS to be allocated.
  11.  
  12.  If you don't know what the BUFFERS command does, I suggest you get out your 
  13. DOS manual and look it up. In brief, the BUFFERS command allows DOS to do 
  14. some disk cacheing. That is, it will keep the most often used portions of the 
  15. disk in memory, and look to memory for what it needs before going out to the 
  16. disk. Because memory access is much faster than disk access, this can save a 
  17. considerable amount of time. This is a glossed-over description of what's 
  18. going on, but it should suffice (go read your Fine DOS Manual, fer cryin out 
  19. loud !).
  20.  
  21.  Now, in your CONFIG.SYS file, you can specify just HOW MANY buffers DOS 
  22. should use. This is done with the following command:
  23.  
  24.      BUFFERS=x
  25.  
  26. where "x" is a number between 1 and 99. If you don't use a BUFFERS command, 
  27. DOS will default to 2 buffers.
  28.  
  29.  Every buffer you ask DOS to use eats up 528 bytes of your RAM. Now, if 
  30. you've got oodles and oodles of RAM, you figure, "What the heck - let's crank 
  31. that sucker up to 64 and get these disks really jumping !". 
  32.  
  33.  Well, no.
  34.  
  35.  You reach a point of diminishing returns - that is, if you specify TOO MANY 
  36. buffers, it will take DOS so long to look through them all, that it would 
  37. have been faster just to read the *@#%`%^! thing directly from the disk !
  38.  
  39.  So, how do you find the OPTIMUM number of buffers to use for your system ? 
  40. Unfortunately, no one can give you a magic number and say "here - use this". 
  41. The number you should use depends on the types of disk you're using, and 
  42. probably the phase of the moon. So, it's suggested that you use trial and 
  43. error to figure out your number.
  44.  
  45.  Ick. In order to change the number of buffers DOS is using, you've not only 
  46. got to change the CONFIG.SYS, but you have to re-boot your computer and run 
  47. your tests all over again... time consuming, and not much fun.
  48.  
  49.  Which brings us to THRASHER. These programs will basically do all your trial 
  50. and error testing for you, while you get on with doing more important and 
  51. exciting things (like trimming your toenails).
  52.  
  53.  Here's the list of files that you SHOULD have in your .ARC file:
  54.  
  55.    AUTOEXEC.BAT     -  An example AUTOEXEC batch file. You can write your own 
  56.                       if you're so inclined. As it is, you'll probably have 
  57.                       to edit this one anyhow...
  58.    JOBQ.BAT         -  You don't really need this, but it's included for the 
  59.                       sake of completeness. THRASHER.EXE creates this. I'll 
  60.                       describe it's use below.
  61.    WARMBOOT.COM     -  A very tiny program that will cause your computer to 
  62.                       warm boot (as though you had pressed the Ctrl-Alt-Del 
  63.                       key sequece). This was written by Gee M. Wong, and I 
  64.                       thank him (her ?) for it.
  65.    THRASHER.DOC     -  What you're reading now !
  66.    THRASHER.EXE     -  The main program.
  67.    CONFIG.SYS       -  An example CONFIG.SYS file. Again, write yer own, or 
  68.                       edit this one.
  69.  
  70.  
  71.  
  72.                              How to use THRASHER
  73.  
  74.     1) Format a new floppy disk with the /S option (so it's bootable). See 
  75. your DOS manual for details. We'll refer to this as the "Thrasher Disk" from 
  76. now on.
  77.  
  78.     2) Copy the following files from your ARC file to the Thrasher Disk:
  79.        THRASHER.EXE      AUTOEXEC.BAT     CONFIG.SYS    WARMBOOT.COM
  80.  
  81.     3) Use some sort of ASCII editor (or even *uugh* EDLIN) to change the 
  82. THRASHER line in AUTOEXEC.BAT to the parameters you need (see below for 
  83. details).
  84.  
  85.     4) Again using your ASCII editor, change the BUFFERS statement in the 
  86. CONFIG.SYS file to the number of buffers you want to start testing with 
  87. (probably 1).
  88.  
  89.     5) Stick the Thrasher disk in drive A: of your system, and re-boot.
  90.  
  91.     6) Go kill some time while it grinds away.
  92.  
  93.    When the program is done running, it'll be at the DOS prompt. And you'll 
  94. have a file on your Thrasher Disk called BUFFERS.RPT. This is a report 
  95. telling you just how the different BUFFERS values worked out. You can send 
  96. the report to your printer by executing the command
  97.  
  98.   TYPE A:BUFFERS.RPT >LPT1:
  99.  
  100. or, you can see it on the screen by executing the command
  101.  
  102.   TYPE A:BUFFERS.RPT
  103.  
  104.  By looking at the elapsed times of the different BUFFERS values, you can 
  105. find out what the best BUFFERS value for the drive tested is.
  106.  
  107.  
  108.                                EXAMPLE REPORT:
  109. Tested drive A:. With BUFFERS=01, elapsed time is 2009 seconds.
  110. Tested drive A:. With BUFFERS=02, elapsed time is 954 seconds.
  111. Tested drive A:. With BUFFERS=03, elapsed time is 480 seconds.
  112. Tested drive A:. With BUFFERS=04, elapsed time is 334 seconds.
  113. Tested drive A:. With BUFFERS=05, elapsed time is 327 seconds.
  114. Tested drive A:. With BUFFERS=06, elapsed time is 323 seconds.
  115. Tested drive A:. With BUFFERS=07, elapsed time is 320 seconds.
  116. Tested drive A:. With BUFFERS=08, elapsed time is 315 seconds.
  117. Tested drive A:. With BUFFERS=09, elapsed time is 310 seconds.
  118. Tested drive A:. With BUFFERS=10, elapsed time is 339 seconds.
  119. Tested drive A:. With BUFFERS=11, elapsed time is 337 seconds.
  120. Tested drive A:. With BUFFERS=12, elapsed time is 332 seconds.
  121. Tested drive A:. With BUFFERS=13, elapsed time is 328 seconds.
  122. Tested drive A:. With BUFFERS=14, elapsed time is 323 seconds.
  123. Tested drive A:. With BUFFERS=15, elapsed time is 319 seconds.
  124. Tested drive A:. With BUFFERS=16, elapsed time is 314 seconds.
  125. Tested drive A:. With BUFFERS=17, elapsed time is 311 seconds.
  126. Tested drive A:. With BUFFERS=18, elapsed time is 306 seconds.
  127. Tested drive A:. With BUFFERS=19, elapsed time is 333 seconds.
  128. Tested drive A:. With BUFFERS=20, elapsed time is 331 seconds.
  129. Tested drive A:. With BUFFERS=21, elapsed time is 327 seconds.
  130. Tested drive A:. With BUFFERS=22, elapsed time is 323 seconds.
  131. Tested drive A:. With BUFFERS=23, elapsed time is 319 seconds.
  132. Tested drive A:. With BUFFERS=24, elapsed time is 315 seconds.
  133. Tested drive A:. With BUFFERS=25, elapsed time is 311 seconds.
  134. Tested drive A:. With BUFFERS=26, elapsed time is 308 seconds.
  135. Tested drive A:. With BUFFERS=27, elapsed time is 313 seconds.
  136. Tested drive A:. With BUFFERS=28, elapsed time is 328 seconds.
  137. Tested drive A:. With BUFFERS=29, elapsed time is 325 seconds.
  138. Tested drive A:. With BUFFERS=30, elapsed time is 322 seconds.
  139. Tested drive A:. With BUFFERS=31, elapsed time is 318 seconds.
  140. Tested drive A:. With BUFFERS=32, elapsed time is 314 seconds.
  141.  
  142.  
  143.   This is the report I got from running my Thrasher Disk on a plain old IBM 
  144. PC, 640k RAM, DOS version 3.1. As we can see, there is a DRAMATIC difference 
  145. between just two buffers, and three buffers ! Now you see how important using 
  146. the buffers command is... Anyhow, it would seem that a BUFFERS=9 command 
  147. would be best for a system that used it's floppy drive primarily.
  148.  
  149.  
  150.                                DETAILS, DETAILS
  151.  
  152.  How does the Thrasher Disk work ? Here's the sequence, as the computer sees 
  153. it:
  154.  
  155.                                    <START>
  156.  
  157. Load DOS into memory
  158.  
  159. Read the CONFIG.SYS file, set up BUFFERS
  160.  
  161. Execute the AUTOEXEC.BAT file
  162.  
  163.   AUTOEXEC sez: Run THRASHER
  164.  
  165.      THRASHER sez: Test the drives, write a report, change CONFIG.SYS
  166.  
  167.      THRASHER sez: If we're done, write WARMBOOT to JOBQ.BAT, else write DONE
  168.  
  169.      THRASHER ends...
  170.  
  171.   AUTOEXEC sez: Run JOBQ.BAT
  172.  
  173. Execute the JOBQ.BAT file
  174.   
  175.   JOBQ.BAT (was written by Thrasher)
  176.      Either do a WARMBOOT (go to START) or tell user we're done, and quit.
  177.  
  178.  
  179.  
  180.  Got that ? 
  181.  
  182.  
  183.                             How THRASHER.EXE works
  184.  
  185.  The THRASHER.EXE program does several things:
  186.  
  187.    1) It puts the requested disk drive through it's paces, and times the 
  188. action.
  189.  
  190.    2) It writes the result